﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using MOD;
using BLL;
using CommonComponent;

/// <summary>
/// 用户操作的展现层
/// </summary>
public class EUser
{
    BUser userlogic = new BUser();
    public EUser()
    {
    }

    /// <summary>
    /// 登录
    /// </summary>
    /// <param name="userId">用户帐号</param>
    /// <param name="passWord">密码</param>
    /// <returns></returns>
    public User Login(string userId, string passWord)
    {
        User user = null;
        try
        {
            user = userlogic.Login(userId, passWord);
        }
        catch (Exception ex)
        {
            CommonComponent.WebPage.JScript.JsAlert(ex.Message);
        }

        return user;
    }

}
